<template>
	<view>
		<view class="item" v-for="(item, idx) in list" :key="idx">{{item.nickname}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			this.loadData()
		},
		methods: {
			loadData() {
				uni.request({
					url: 'https://fc-mp-7b8642dc-1e34-4dc0-a5c0-de332f456653.next.bspapp.com/getUserList',
					data: {
						pageNum: 1,
						pageSize: 100
					},
					success: (res) => {
						this.list = res.data.records
					}
				})
			}
		}
	}
</script>

<style scoped>
	.item {
		padding: 0 30rpx;
		height: 44px;
		line-height: 44px;
	}
</style>
